package cn.com.eado.uwallpaper.utils;

import android.content.Context;
import android.os.Environment;

import java.io.File;

/**
 * Created by lcy on 2015/12/22.
 */
public class AppConfig {
    // 默认存放图片的路径
    public final static String DEFAULT_SAVE_IMAGE_PATH = Environment
            .getExternalStorageDirectory()
            + File.separator
            + "eado"
            + File.separator + "osc_img" + File.separator;

    // 默认存放文件下载的路径
    public final static String DEFAULT_SAVE_FILE_PATH = Environment
            .getExternalStorageDirectory()
            + File.separator
            + "eado"
            + File.separator + "download" + File.separator;

    private Context mContext;
    private static AppConfig appConfig;

    public static AppConfig getAppConfig(Context context) {
        if (appConfig == null) {
            synchronized (AppConfig.class){
                if (appConfig == null){
                    appConfig = new AppConfig();
                    appConfig.mContext = context;
                }
            }
        }
        return appConfig;
    }
}
